package com.cheng.reggie.mapper;

import com.cheng.reggie.entity.OrderDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {


    //批量插入多条订单详细数据
    Integer saveBatch(@Param("OrderDetailList") List<OrderDetail> orderDetailList);

    //查询指定订单主表的订单详细数据
    @Select("select * from  order_detail where order_id=#{oid}")
    List<OrderDetail> findByOid(Long oid);
}
